package cn.tedu.thread;

import cn.tedu.memory.App;
import cn.tedu.pojo.User;

public class ThreadTest extends Thread{
	private static User user;
	
	@Override
	public void run() {
		while(true) {
			user = App.getApp();
			System.out.println(getName()+":"+user);
			if(user.getAge() > 30) {
				break;
			}
		}
		
	}
}
